package com.ocom.mqsubsidy.business.couponsdataexport.impl;


import com.ocom.mqsubsidy.business.couponsdataexport.CouponsDataExportProductService;
import com.ocom.mqsubsidy.utils.CouponsDataExportProductUitl;
import com.ocom.mqsubsidy.utils.SubsidyDataProductUitl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class CouponsDataExportProductServiceImpl implements CouponsDataExportProductService {
	private final Logger log = LoggerFactory.getLogger(CouponsDataExportProductServiceImpl.class);

	@Autowired
	private CouponsDataExportProductUitl couponsDataExportProductUitl;

	/**
	 * 处理人员图片
	 */
	public void handle(String msg) {

		log.info(" subsidy-mq-开始【{}】",msg);
		//消息队列调用减库存接口  优先级越高越先执行完

		couponsDataExportProductUitl.couponsDataExportSend(msg,15);

        log.info(" subsidy-完成【{}】",msg);

	}

}
